<%@page import="com.tjsinfo.tjsoa.check.vo.TCheckEmployee"%>
<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List checkEmployeemainList = (List)request.getAttribute("checkEmployeemainList");
Integer id  = (Integer)request.getAttribute("id");

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'checkEmployeemain.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/icon.css" />
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
	<script type="text/javascript">
		function employeeDataOut(){
			$.get("<%=basePath %>tjsinfo/tjsoa/check/check.do?method=employeeDataOut",{
	    			'id':$("input[name=mainid]").val()
	    		},function(data){
	    			window.location.href = '<%=basePath %>/check/'+data.fileurl;
	    		},'json')
		}
	</script>
</head>

<body>
	<table title="得分汇总" iconCls="icon-save" id="tt" class="easyui-datagrid" style="width:auto;height:500px;" toolbar="#tb">
		<thead frozen="true">
			<tr >
				<th field="personName" width="100" rowspan="2">被考核领导干部</th>
				<th field="sum" width="80" rowspan="2">得分</th>
				
				
			</tr>
		</thead>
		
		<thead>
			<tr >
				<th colspan="3">素质</th>
				<th colspan="4">能力</th>
				<th colspan="2">业绩</th>
				<th colspan="2">廉洁从业</th>
				
			</tr>
			<tr>
				<th field="zhibiao1" width="100">政治素质（5分）</th>
				<th field="zhibiao2" width="100">职业操守（5分）</th>
				<th field="zhibiao3" width="100">作风建设（5分）</th>
				<th field="zhibiao4" width="150">科学决策能力（5分）</th>
				<th field="zhibiao5" width="150">推动执行能力（5分）</th>
				<th field="zhibiao6" width="150">学习创新能力（5分）</th>
				<th field="zhibiao7" width="150">团结建设能力（5分）</th>
				<th field="zhibiao8" width="150">履职绩效（KPI关键绩效指标）(35分)</th>
				<th field="zhibiao9" width="100">协同成效（15分）</th>
				<th field="zhibiao10" width="100">廉洁自律（10分）</th>
				<th field="zhibiao11" width="150">执行党风廉政责任制（5分）</th>
				
			</tr>
		</thead>
			
		<tbody>
			<%	
				Iterator iterator = checkEmployeemainList.iterator();
				while(iterator.hasNext())
				{
					TCheckEmployee checkEmployee  = (TCheckEmployee)iterator.next();
			%>
				<tr>
					
					<td><%=checkEmployee.getPersonName() %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getSum() ) %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao1() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao2() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao3() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao4() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao5() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao6() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao7() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao8() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao9() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao10() )  %></td>
					<td><%=ToolKit.doubleToTwo(checkEmployee.getZhibiao11() )  %></td>
					
				</tr>
			<% 	
					}
				
			 %>
			
			
		</tbody>
	</table>
	<div id="tb">
		<a class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:employeeDataOut()">导出报表</a>
	</div>
	<input type="hidden" name="mainid" value="<%=id%>"/>
</body>
</html>
